<!TITLE>Screen resolution detection and notification Script
<!/TITLE>
<!BROWSER>FF1+ IE5+ Opr7+<!/BROWSER>
<!DESCRIPTION>A script that tests the surfer's screen size, and if it's not a certain size (ie: 800*600), suggests to the surfer to change resolution. Note: If you're screen resolution is 800*600, you will see nagging message appear below, since the resolution set to detect in the script is currently 800*600.
<!/DESCRIPTION>
<!CATEGORY>text animations<!/CATEGORY>
<!SCRIPT>
<!-- START OF SCRIPT -->
<script language="JavaScript1.2">
<!--
/*
Screen resolution detection and notification Script-
⌐ Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions,
100's more DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
*/
var correctwidth=800
var correctheight=600
if (screen.width!=correctwidth||screen.height!=correctheight)
document.write("This webpage is bested viewed with screen resolution "+correctwidth+"*"+correctheight+". Your current resolution is "+screen.width+"*"+screen.height+". If possible, please change the resolution!")
//-->
</script>
<!-- END OF SCRIPT -->
<!/SCRIPT>
<!PREVIEW>
<!-- START OF SCRIPT -->
<script language="JavaScript1.2">
<!--
/*
Screen resolution detection and notification Script-
⌐ Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions,
100's more DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
*/
var correctwidth=800
var correctheight=600
if (screen.width!=correctwidth||screen.height!=correctheight)
document.write("This webpage is bested viewed with screen resolution "+correctwidth+"*"+correctheight+". Your current resolution is "+screen.width+"*"+screen.height+". If possible, please change the resolution!")